const beforeList = [
  {
    nsort: 1,
    status: false,
    productCode: '1001',
    productName: '成品材料1',
    unitQty: '16.513485',
    allQty: '684.486185',
    fctQty: '5.2',
    note: '备注123456',
    unit: '匹',
    price: '15',
    props: '重量，尺码，属性',
  },
  {
    nsort: 2,
    status: false,
    productCode: '1001',
    productName: '成品材料1',
    unitQty: '16.513485',
    allQty: '684.486185',
    note: '备注123456',
    unit: '匹',
    price: '15',
    props: '重量，尺码，属性',
  },
  {
    nsort: 3,
    status: false,
    productCode: '1001',
    productName: '成品材料1',
    unitQty: '16.513485',
    allQty: '684.486185',
    fctQty: '5.2',
    note: '备注123456',
    unit: '匹',
    price: '15',
    props: '重量，尺码，属性',
  },
  {
    nsort: 4,
    status: false,
    productCode: '1001',
    productName: '成品材料1',
    unitQty: '16.513485',
    allQty: '684.486185',
    note: '备注123456',
    unit: '匹',
    price: '15',
    props: '重量，尺码，属性',
  },
]

const afterList = [
  {
    nsort: 1,
    status: false,
    productCode: '1001',
    productName: '成品材料1',
    unitQty: '16.513485',
    allQty: '684.486185',
    fctQty: '5.2',
    note: '备注123456',
    unit: '匹',
    price: '15',
    props: '重量，尺码，属性',
  },
  {
    nsort: 2,
    status: false,
    productCode: '1001',
    productName: '成品材料1',
    unitQty: '16.513485',
    allQty: '684.486185',
    note: '备注123456',
    unit: '匹',
    price: '15',
    props: '重量，尺码，属性',
  },
  {
    nsort: 3,
    status: false,
    productCode: '1001',
    productName: '成品材料1',
    unitQty: '16.513485',
    allQty: '684.486185',
    fctQty: '5.2',
    note: '备注123456',
    unit: '匹',
    price: '15',
    props: '重量，尺码，属性',
  },
  {
    nsort: 4,
    status: false,
    productCode: '1001',
    productName: '成品材料1',
    unitQty: '16.513485',
    allQty: '684.486185',
    note: '备注123456',
    unit: '匹',
    price: '15',
    props: '重量，尺码，属性',
  },
]

const item = {
  nsort: 0,
  status: true,
  productCode: '',
  productName: '',
  unitQty: '',
  allQty: '',
  fctQty: '',
  note: '',
  unit: '',
  price: '',
  props: '',
}

const productClassList = [
  { code: '10', name: '材料' },
  { code: '12', name: '上衣' },
  { code: '13', name: '裤子' },
  { code: '14', name: '夏装' },
  { code: '15', name: '羽绒服' },
  { code: '16', name: '马甲' },
]
const productList = [
  { code: '1001', name: '材料10' },
  { code: '1002', name: '上衣10' },
  { code: '1003', name: '裤子45' },
  { code: '1004', name: '夏装513' },
  { code: '1005', name: '羽绒服都是' },
  { code: '1006', name: '马甲45GF' },
]
const unitList = [
  { code: '件', name: '件' },
  { code: '打', name: '打' },
  { code: '码', name: '码' },
  { code: '斤', name: '斤' },
  { code: '匹', name: '匹' },
]

module.exports = [
  // 获得材料相关配置
  {
    url: '/dyeing/getBeforeList',
    type: 'post',
    response: (config) => {
      console.log('getBeforeList')
      return {
        code: 0,
        data: beforeList,
      }
    },
  },
  {
    url: '/dyeing/getAfterList',
    type: 'post',
    response: (config) => {
      console.log('getAfterList')
      return {
        code: 0,
        data: afterList,
      }
    },
  },
  {
    url: '/dyeing/addItem',
    type: 'post',
    response: (config) => {
      return {
        code: 0,
        data: item,
      }
    },
  },
  // 产品相关资料
  {
    url: '/dyeing/getProductList',
    type: 'post',
    response: (config) => {
      return {
        code: 0,
        data: productList,
      }
    },
  },
  {
    url: '/dyeing/getProductClassList',
    type: 'post',
    response: (config) => {
      return {
        code: 0,
        data: productClassList,
      }
    },
  },
  {
    url: '/dyeing/getUnitList',
    type: 'post',
    response: (config) => {
      return {
        code: 0,
        data: unitList,
      }
    },
  },
]
